<ion-header [translucent]="true">
  <ion-toolbar>
    <ion-title>
      首页
    </ion-title>
  </ion-toolbar>
</ion-header>

<ion-content [fullscreen]="true">
    <div class="ion-margin margin">
      <ion-button (click)="uploadImg()" color="primary" expand="block" shape="round">
        拍摄照片并上传
      </ion-button>
    </div>
    <div class="ion-margin margin">
      <input type="file" hidden (change)="uploadFile($event)" id="file" accept="application/msexcel,application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
      <ion-button (click)="fileClick()" color="primary" expand="block" shape="round">
        选择文件并上传
      </ion-button>
    </div>
    <div class="ion-margin margin">
      <ion-button (click)="downloadFile()" color="primary" expand="block" shape="round">
        下载文件并打开
      </ion-button>
    </div>

</ion-content>